/*-------------------------------------------------------------------------

   File :          vsmbtx.h
   Project :       VeriFone SoftPay Base
   Description :   Wireless Modem Table


***************** Modification History ***********************************

$Log: /SoftPay/SPK2SIM/Source/Include/mbtx.h $


**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/

#ifndef VSMBTX_H
#define VSMBTX_H


#include <comm.h>
#include <mct.h>
#include <packet.h>


typedef struct mobitex_struct
{
	int hModem;             /* Handle of the modem, local to this file */
	int inNumofTries;
	int inCurrentLine;      /* Primary or Secondary Line */
	int inCPTIndex;
	MCT_REC srMCT;
} MOBITEX_OBJECT;



void vdRadioInput(void);
int  inInitRadioModem(void);
int  inOpenMobitexCommunication (COMM_OBJECT *obCommunication);
int  inBeginMobitexCommunication(COMM_OBJECT *obCommunication, int inCPTIndex, VS_BOOL );
int  inCheckMobitexCommunication(COMM_OBJECT *obCommunication );
int  inSendReceiveMobitex(TRANSACTION_OBJECT *pobTran, PACKET_OBJECT *pobPacket );
int  inSendMobitexPacket(PACKET_OBJECT *pobPacket, TRANSACTION_OBJECT *pobTran );
int inSendMobitexHPDataPacket(PACKET_OBJECT *pobPacket, TRANSACTION_OBJECT *pobTran);
int  inSendMobitexCommunication(COMM_OBJECT *obCommunication, char *pchSendBuff, int inSendSize,VS_BOOL fConfirmSend, int inTimeout, long lnMessage);
int  inReceiveMobitexCommunication(COMM_OBJECT *obCommunication, char *pchReceiveBuff, int inReceiveSize, int inReceiveTimeout, long lnMessage );
int  inDialBackup( COMM_OBJECT *obCommunication );
int inGetMobitexHeader(char *szHeader, TRANSACTION_OBJECT *pobTran, long lnHeaderType);
int inProcessFPacket(COMM_OBJECT *obCommunication, char *szPacketBuffer );
int inReadMobitexResponse( PACKET_OBJECT *pobPacket, MOBITEX_OBJECT *obMobitex );
int inTxMobitexPacket( PACKET_OBJECT *pobPacket, TRANSACTION_OBJECT *pobTran);
int inInitRadioModem(void);
int inSignalStrengthOperation(TRANSACTION_OBJECT *pobTran);
void vdUpdateWirelessSignalStatus (char *szRSSI);

#endif
